
#include "FlashOperation.h"


void SaveConfigDatas(void)
{
	u32 i, addr = CONFIG_DATA_ADDRESS, *pdata = RAM_REG;

	FLASH_Unlock();
	FLASH_ErasePage(CONFIG_DATA_ADDRESS);
	for(i = 0 ; i < REG_SIZE ; i ++)
	{
		FLASH_ProgramWord(addr, *pdata++);	
		addr += 4;
	}
	FLASH_Lock();	
}

